<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Book Store</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/style/style.css" />


</head>
<body>
<div id="wrap">

       <!-- 导航栏加头 -->
	  		<%@ include file="../common/header.jsp" %>
	   <!-- 导航栏加头 -->
       
       
       <div class="center_content">
       	<div class="left_content">
            <div class="title"><span class="title_icon"><img src="${path }images/bullet1.gif" alt="" title="" /></span>我的订单</div>
        	
            <!--订单区域-->
        	<div class="feat_prod_box_details">
            	<div class="order_title">
                	<h3 style="width:40%">宝贝</h3>
                    <h3 style="width:13%">单价(元)</h3>
                    <h3 style="width:12%">数量</h3>
                    <h3 style="width:15%">实付款(元)</h3>
                    <h3 style="width:20%">交易状态</h3> 
                </div>
            	
                <c:forEach var="o" items="${paging.orders }">
                	<div class="order_item">
		                <div class="item_title">               
		                      <input type="checkbox" disabled="disabled" />&nbsp;<span style="font-weight:800"><fmt:formatDate value="${o.createDate }" pattern="yyyy-MM-dd"/></span>&nbsp;&nbsp;订单号:<span style="font-weight:800">${o.orderNum }</span>      
		                </div>
		                <c:forEach var="oi" items="${o.items }">   
			                <div class="per_item">
		                    	<h3 style="width:20%">
		                        	<a href="${path }/book/detailBook"><img src="${path }/images/${oi.book.imgUrl }" style="width:23px;height:35px;" alt="" title="" border="0" class="cart_thumb" /></a>     
		                        </h3>
		                        <h3 style="width:20%">${oi.book.bookName }</h3>
		                        <h3 style="width:13%">${oi.book.price }</h3>
		                        <h3 style="width:12%">${oi.count }</h3>
		                        <h3 style="width:15%">${oi.allPrice }</h3>
		                        <h3 style="width:20%">
		                        	<c:if test="${o.orderStatus == '0' }">未付款</c:if>
		                        	<c:if test="${o.orderStatus == '1' }">已付款</c:if>
		                        </h3> 
			                </div>
		                </c:forEach>
		            </div>
                </c:forEach>
             </div>
            
            <!--分页栏-->
            <div class="page">
            	<a href="${path }/permission/order/list?pageSize=${paging.pageSize}&pageNow=1">首页</a>&nbsp;
            	<c:if test="${paging.pageNow != 1 }">
            		<a href="${path }/permission/order/list?pageSize=${paging.pageSize}&pageNow=${paging.pageNow-1 }">上一页</a>&nbsp;
            	</c:if>
                
                
                <c:if test="${paging.pageNow != paging.pageCount }">
            		<a href="${path }/permission/order/list?pageSize=${paging.pageSize}&pageNow=${paging.pageNow + 1 }">下一页</a>&nbsp;
            	</c:if>
            	
                <a href="${path }/permission/order/list?pageSize=${paging.pageSize}&pageNow=${paging.pageCount }">尾页</a>&nbsp;
                
                当前<span style="color:red">${paging.pageNow }</span>/${paging.pageCount }页&nbsp;
                
                <!--
                跳转到<input type="text" name="toPage" style="width:30px; height:10px; text-align:center"  /><input type="button" style="height:20px; text-align:center"  value="to"  />&nbsp;
                
                每页显示<select name="toSize" style="height:20px; text-align:center">
                			<option value="2">2</option>
                            <option value="2">4</option>
                            <option value="2">8</option>
                       </select>条
                 -->
            </div>
           
        <div class="clear"></div>
        </div><!--end of left content-->
        
        <div class="right_content">
        
                	<div class="languages_box">
            <span class="red">Languages:</span>
            <a href="#"><img src="images/gb.gif" alt="" title="" border="0" /></a>
            <a href="#"><img src="images/fr.gif" alt="" title="" border="0" /></a>
            <a href="#"><img src="images/de.gif" alt="" title="" border="0" /></a>
            </div>
                <div class="currency">
                <span class="red">Currency: </span>
                <a href="#">GBP</a>
                <a href="#">EUR</a>
                <a href="#"><strong>USD</strong></a>
                </div>
                
                
              <div class="cart">
                  <div class="title"><span class="title_icon"><img src="${path }/images/cart.gif" alt="" title="" /></span>我的购物车</div>
                  <div class="home_cart_content">
                  ${cart.allcount }个商品 | <span class="red">总价: ${cart.allPrice }元</span>
                  </div>
                  <a href="${path }/jsp/cart/cart.jsp" class="view_cart">查看购物车</a>
              
              </div>
        
             <div class="title"><span class="title_icon"><img src="${path }/images/bullet3.gif" alt="" title="" /></span>关于我们店</div> 
             <div class="about">
             <p>
             <img src="${path } }images/about.gif" alt="" title="" class="right" />
             本书店是天创集团旗下的天智教育经营的书店，开业十年来，一直与国内外五百家出版社，近千家发行单位保持着良好的合作关系。以其集文化传播、艺术鉴赏、休闲为一体的崭新经营方式、一流的购书环境及优质的服务，赢得了众多的荣誉，成为华东地区最大的集图书、音像制品、文化用品、快餐、软件开发、广告策划于一体的图书零售企业。
             </p>
             
             </div>
             
 <div class="right_box">
           <div class="title"><span class="title_icon"><img src="${path}/images/bullet4.gif" alt="" title="" /></span>推荐图书</div> 
           <c:forEach var="t" items="${tuijianBook.books }">
           <div class="new_prod_box">
               <a href="javascript:void(0)" onclick="detailsBook('${t.bookId}')">${t.bookName }</a>
               <div class="new_prod_bg">
               <span class="new_icon"><img src="${path }/images/promo_icon.gif" alt="" title="" /></span>
               <a href="javascript:void(0)" onclick="detailsBook('${t.bookId}')"><img  src="${path }/images/${t.imgUrl }" style="width:60px;height:90px" alt="" title="" class="thumb" border="0" /></a>
               </div>           
           </div>
           </c:forEach>         
      </div>
             <div class="right_box">
             
             	<div class="title"><span class="title_icon"><img src="${path }/images/bullet5.gif" alt="" title="" /></span>图书分类</div> 
                
                <ul class="list">
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>
                <li><a href="#">hollidays gifts</a></li>
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>
                <li><a href="#">hollidays gifts</a></li>
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>                                              
                </ul>
                
             	<div class="title"><span class="title_icon"><img src="${path }/images/bullet6.gif" alt="" title="" /></span>合作伙伴</div> 
                
                <ul class="list">
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>
                <li><a href="#">hollidays gifts</a></li>
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>
                <li><a href="#">hollidays gifts</a></li>
                <li><a href="#">accesories</a></li>                              
                </ul>      
             
             </div>         
             
        </div><!--end of right content-->
       
       <div class="clear"></div>
       </div><!--end of center content-->
       
              
       <!-- 网站尾部 -->            
  			<%@ include file="../common/foot.jsp" %>
  	   <!-- 网站尾部 -->  
    

</div>

</body>
</html>